package com.wgy.day8;

public class Demo20201104_5 {
    public static void main(String[] args) {
        System.out.println(getsum());
    }
    public static int getsum(){
        int sum=0;
        for (int i = 1; i <=100; i++) {
            sum +=i;

        }
        return sum;
    }
}
